package com.base.service.CZB.Impl;

import com.base.mapper.czbmapper.GasOrderH5readMapper;
import com.base.po.czb.GasOrderH5read;
import com.base.po.czb.GasOrderH5readExample;
import com.base.service.CZB.GasOrderH5readService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service("GasOrderH5readService")
public class GasOrderH5readServiceImpl implements GasOrderH5readService {
    @Autowired
    GasOrderH5readMapper gasOrderH5readMapper;
    @Override
    public int countByExample(GasOrderH5readExample example) {
        return gasOrderH5readMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(GasOrderH5readExample example) {
        return gasOrderH5readMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return gasOrderH5readMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(GasOrderH5read record) {
        return gasOrderH5readMapper.insert(record);
    }

    @Override
    public int insertSelective(GasOrderH5read record) {
        return gasOrderH5readMapper.insertSelective(record);
    }

    @Override
    public List<GasOrderH5read> selectByExample(GasOrderH5readExample example) {
        return gasOrderH5readMapper.selectByExample(example);
    }

    @Override
    public GasOrderH5read selectByPrimaryKey(Integer id) {
        return gasOrderH5readMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(GasOrderH5read record, GasOrderH5readExample example) {
        return gasOrderH5readMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(GasOrderH5read record, GasOrderH5readExample example) {
        return gasOrderH5readMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(GasOrderH5read record) {
        return gasOrderH5readMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GasOrderH5read record) {
        return gasOrderH5readMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<GasOrderH5read> selectByOrderId(String orderId) {
        return gasOrderH5readMapper.selectByOrderId(orderId);
    }

    @Override
    public Integer countAllGasOrder(String parentid, String czborderid, String mobile, String gasid, String paystatus, String createTime1, String createTime2) {
        return gasOrderH5readMapper.countAllGasOrder( parentid,  czborderid,  mobile,  gasid,  paystatus,  createTime1,  createTime2);
    }

    @Override
    public List<GasOrderH5read> selectAllGasOrder(String parentid, String czborderid, String mobile, String gasid, String paystatus, String createTime1, String createTime2, Page page) {
        return gasOrderH5readMapper.selectAllGasOrder( parentid,  czborderid,  mobile,  gasid,  paystatus,  createTime1,  createTime2,  page);
    }

    @Override
    public BigDecimal countAllOrderMoney(String parentid, String czborderid, String mobile, String gasid, String paystatus, String createTime1, String createTime2) {
        return gasOrderH5readMapper.countAllOrderMoney( parentid,  czborderid,  mobile,  gasid,  paystatus,  createTime1,  createTime2);
    }

}
